//
//  BKODCalendarView.h
//  CanlendarTest
//
//  Created by yons on 17/2/13.
//  Copyright © 2017年 马乾征. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSCalendar+BKODCalendarExtensions.h"
#import "BK_Calendar_HeaderView.h"
@class BKODCalendarView;





@protocol BKODCalendarViewDelegate <NSObject>
@optional
/**
 * cell selected
 */
- (void)calendar:(BKODCalendarView *)calendar didSelectDate:(NSDate *)date;
/**
 * cell should select
 */
- (BOOL)calendar:(BKODCalendarView *)calendar shouldSelectDate:(NSDate *)date;

/**
 * cell title
 */
- (NSString *)calendar:(BKODCalendarView *)calendar titleForDate:(NSDate *)date;

/**
 * cell subTitle
 */
- (NSString *)calendar:(BKODCalendarView *)calendar subtitleForDate:(NSDate *)date;
@end


@interface BKODCalendarView : UIView
@property(nonatomic, weak)id <BKODCalendarViewDelegate> delegate;
@property(nonatomic, strong)NSDate *minimumDate;
@property(nonatomic, strong)NSDate *maximumDate;
@property(nonatomic, strong, readonly)NSDate *currentPage;
@property(nonatomic, strong, readonly)NSDate *selectedDate;
@property(nonatomic, strong)BK_Calendar_HeaderView *calendarHeaderView;

- (void)setCurrentPage:(NSDate *)currentPage;
- (void)selectDate:(NSDate *)date;
- (void)reloadData;

@end
